<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title> 气度网 - 气度如水</title>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link type="text/css" rel="stylesheet" href="${ctx}/css/sub_topic_<s:property value="style"/>.css" >
</head>
<body>
<div id="container">
	<!-- 头部 -->
	<%@ include file="header.jsp"%>
    <div id="banner">
    	<div id="logo">
    		<a href="${ctx}/index"><img src="${ctx}/image/index/logo.gif" border="0"  alt=" 气度网 - 气度如水 "   title=" 气度网 - 气度如水 "></a>
    	</div>
        <!-- 搜索栏 -->
        <div id="search_bar">
        <form action="${ctx}/product/search?pageNum=1&pageSize=10" method="post">
        		<input type="text" value="请输入关键字" id="search_key" name="key" class="search" />
            	<select class="search" id="search_category" name="category">
					<option value="all">所有</option>
					<s:iterator value="#session.indexMainMenu" var="tempSort">
        			<option value="<s:property value="#tempSort.typeCode"/>"><s:property value="#tempSort.typeName"/></option>
        			</s:iterator>  
           		</select>
                <input type="submit" class="search_btn" value="搜索"/>
        </form>
        </div>
   	</div>
   	<div class="clear"></div>
    <div class="divide">
    	<div class="index_menu">
        	<a href="${ctx}/index" title="气度首页"><div class="menu_btn">气度首页</div></a>
            <a href="#" title="产品类别"><div class="qeado_index">产品类别</div></a>
            <a href="${ctx }/news/index" title="农业资讯"><div class="menu_btn">农业资讯</div></a>
            <a href="${ctx }/school/index" title="校园合作"><div class="menu_btn">校园合作</div></a>
            <a href="#" title="农业百科"><div class="menu_btn">农业百科</div></a>
            <a href="#" title="市场行情"><div class="menu_btn">市场行情</div></a>
            <a href="#" title="企业名录"><div class="menu_btn">企业名录</div></a>
            <a href="#" title="校园名录"><div class="menu_btn">校园名录</div></a>
            <a href="#" title="关于气度"><div class="menu_btn">关于气度</div></a>
        </div>
        <div class="clear"></div>
		<div class="key_link_menu">
        	<div class="key_link">主要类别：</div>
        	<s:iterator value="#session.indexMainMenu" var="tempSort" status="count">
        		<a href="${ctx}/sub_sort?style=<s:property value="#count.index+1"/>"><div class="key_link"><s:property value="#tempSort.typeName"/></div></a>
        	</s:iterator>      
        </div>
        <div class="clear" ></div>
    </div>
    <div class="clear"></div>
	<!-- 内容 -->    
    <div id="body">
        <!-- part 2 -->
        <div class="body_part_2">
        	<div class="row_1">
            	<div class="title">
                	<div class="more"><a href="#">更多</a></div>
                    <div class="more_category"><a href="#">类别1</a></div>
                </div>
                <div class="front_product">
                	<div class="_product">
                    	<a href="#">
                        	<div class="pic">
                            	<img src="${ctx}/image/upload/p_1.jpg" width="120px" height="110px">
                            </div>
                            <div class="info">五指山绿茶 ￥ 999</div>
                            <div class="info"><font color="#FF0000">截止：2011-09-09</font></div>
                        </a>
                    </div>
                 	<div class="_product">
                    	<a href="#">
                        	<div class="pic">
                            	<img src="${ctx}/image/upload/p_1.jpg" width="120px" height="110px">
                            </div>
                            <div class="info">五指山绿茶 ￥ 999</div>
                            <div class="info"><font color="#FF0000">截止：2011-09-09</font></div>
                        </a>
                    </div>
                	<div class="_product">
                    	<a href="#">
                        	<div class="pic">
                            	<img src="${ctx}/image/upload/p_1.jpg" width="120px" height="110px">
                            </div>
                            <div class="info">五指山绿茶 ￥ 999</div>
                            <div class="info"><font color="#FF0000">截止：2011-09-09</font></div>
                        </a>
                    </div>
                 	<div class="_product">
                    	<a href="#">
                        	<div class="pic">
                            	<img src="${ctx}/image/upload/p_1.jpg" width="120px" height="110px">
                            </div>
                            <div class="info">五指山绿茶 ￥ 999</div>
                            <div class="info"><font color="#FF0000">截止：2011-09-09</font></div>
                        </a>
                    </div>
                 	<div class="_product">
                    	<a href="#">
                        	<div class="pic">
                            	<img src="${ctx}/image/upload/p_1.jpg" width="120px" height="110px">
                            </div>
                            <div class="info">五指山绿茶 ￥ 999</div>
                            <div class="info"><font color="#FF0000">截止：2011-09-09</font></div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <div class="ad_3">990 X 60</div>
        <!-- part 3 分类-->
        <div class="body_part_3">
        	<!-- 类别 -->
            <div class="left">
            	<!-- 1级类别 -->
            	<div class="type_title"></div>
                <div class="type_level">
                    <div class="typeLogo1"></div>
                    <div class="typeInfo">
                        <div class="typeName">
                        <s:iterator value="#session.subSortList_1.get(typeCode)" var="sub" status="count">
                            <s:if test="#count.odd || #count.first">
                            <div class="typeName_row">
                            </s:if>
                                <div class="typeName_cols">
                                    <div class="typeName_1"><a href="#"><font color="#06F"><s:property value="#sub.typeName"/></font></a></div>
                                    <div class="typeName_2">
                                    <s:iterator value="#session.subSortList_2.get(#sub.typeCode)" var="sub2" status="count2">
                                    	<s:if test="#count2.index < 15">
                                    		<s:if test="#count2.index % 5 = 0 ||  #count2.first">
                                    			<div class="row">
                                    		</s:if>
                                    				<div class="cols">
                                    					<a href="${ctx}/product/listBySort?typeCode=<s:property value="#sub2.typeCode"/>">
                                    						<s:property value="#sub2.typeName"/>
                                    					</a>
                                    				</div>
                                    		<s:if test="#count2.index % 5 = 4 ||  #count2.last">
                                    			</div>
                                    		</s:if>
                                    	</s:if>
                                    </s:iterator>    	
                                    </div>
                                </div>                               
                            <s:if test="#count.even || #count.last">
                            </div>
                            </s:if>
						</s:iterator>   
                        </div>
                    </div>
                </div>
            </div>
            <!-- 最新发布 -->
            <div class="right">
            	<div class="title"><a href="#">更多&nbsp;&nbsp;</a></div>
                <div class="info">
                <s:iterator value="newSell.objList" var="product">
                	<li>
                    	<div class="name">
                    		<a href="${ctx}/product/view?id=<s:property value="#product.id" />" title="<s:property value="#product.prodName" />" >
                    			<s:if test="#product.prodName.length() > 8">
                            		<s:property value="#product.prodName.substring(0,8) + '...' "/>
                            	</s:if>
                            	<s:else>
                            		<s:property value="#product.prodName" />
                            	</s:else>
                    		</a>
                    	</div>
                        <div class="date"><font color="#FF0000"><s:property value="#product.createDate" /></font></div>
                    </li>
                </s:iterator>        
                </div>
            	<div class="title2"><a href="#">更多&nbsp;&nbsp;</a></div>
                <div class="info">
                <s:iterator value="newBuy.objList" var="product">
                	<li>
                    	<div class="name">
                    		<a href="${ctx}/product/view?id=<s:property value="#product.id" />" title="<s:property value="#product.prodName" />" >
                    			<s:if test="#product.prodName.length() > 8">
                            		<s:property value="#product.prodName.substring(0,8) + '...' "/>
                            	</s:if>
                            	<s:else>
                            		<s:property value="#product.prodName" />
                            	</s:else>
                    		</a>
                    	</div>
                        <div class="date"><font color="#FF0000"><s:property value="#product.createDate" /></font></div>
                    </li>
                </s:iterator>   
                </div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <!-- 尾部 -->
	<%@ include file="tail.jsp"%>
</div>  
</body>
</html>
